<?php
function classToOrm($class = NULL) {
  $class = strtolower($class);
  switch ($class) {
    case 'pz_knowledge':
      require_once dirname(__FILE__) . '/ORMpz_knowledge.class.php';
      return new ORMpz_knowledge();
    case 'pz_tnfc_knowledge_image':
      require_once dirname(__FILE__) . '/ORMpz_tnfc_knowledge_image.class.php';
      return new ORMpz_tnfc_knowledge_image();
    default:
      return NULL;
  }
  return NULL;
}
?>
